package com.xiaoshuidi.cloud.module.iot.dal.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import lombok.Data;

import java.time.LocalDate;

@Data
@TableName("tb_device_dosage")
public class TbDeviceDosageDo extends TenantBaseDO {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备编号
     */
    @TableField(value = "device_no")
    private String deviceNo;


    /**
     * 日期
     */
    @TableField(value = "dosage_date")
    private LocalDate dosageDate;

    /**
     * 初始数量
     */
    @TableField(value = "start_amount")
    private Double startAmount;

    /**
     * 最后数量
     */
    @TableField(value = "end_amount")
    private Double endAmount;

    @TableField(value = "amount")
    private Double amount;

    //分摊电量
    @TableField(value = "share_rading")
    private Double shareRading;
    //分摊金额
    @TableField(value = "share_amount")
    private Double shareAmount;

    @TableField(value = "start_dosage_date")
    private LocalDate startDosageDate;
    /**
     * 总计量
     */
    @TableField(value = "total_amount")
    private Double totalAmount;

    /**
     * 记录数据状态 1正常 0无效
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 记录数据状态 1正常 0无效
     */
    @TableField(value = "msg_id")
    private String mesgId;

    /**
     * 尖初始读数
     */
    @TableField(value = "spike_start_reading")
    private Double spikeStartReading;
    /**
     * 尖最后读数
     */
    @TableField(value = "spike_end_reading")
    private Double spikeEndReading;
    /**
     * 尖金额
     */
    @TableField(value = "spike_amount")
    private Double spikeAmount;

    /**
     * 峰初始读数
     */
    @TableField(value = "peak_start_reading")
    private Double peakStartReading;
    /**
     * 峰最后读数
     */
    @TableField(value = "peak_end_reading")
    private Double peakEndReading;
    /**
     * 峰金额
     */
    @TableField(value = "peak_amount")
    private Double peakAmount;

    /**
     * 平初始读数
     */
    @TableField(value = "plain_start_reading")
    private Double plainStartReading;
    /**
     * 平最后读数
     */
    @TableField(value = "plain_end_reading")
    private Double plainEndReading;
    /**
     * 平金额
     */
    @TableField(value = "plain_amount")
    private Double plainAmount;

    /**
     * 谷初始读数
     */
    @TableField(value = "valley_start_reading")
    private Double valleyStartReading;
    /**
     * 谷最后读数
     */
    @TableField(value = "valley_end_reading")
    private Double valleyEndReading;
    /**
     * 谷金额
     */
    @TableField(value = "valley_amount")
    private Double valleyAmount;
}